﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameResourceManager : ResourceManager
{
    public const string upgradeFxPath = battleEffectDir + "UpgradeFX";
    public const string listObj = widgeteDir+"PartItem3D";
    public const string bombPath = widgeteDir + "Bomb" ;
    private const string battleDir = "Scene/Battle/";
    public const string itemIconsDir = battleDir + "Parts/Icons/";
    public const string itemModelsDir = battleDir + "Parts/Models/";
    
    private const string battleEffectDir = battleDir + "Effects/";
    public const string fireFX = battleEffectDir +"FireFX";
    
    public const string dizzyFXPath = battleEffectDir + "xuanyun.prefab";
    
    public const string growUpFxPath = battleEffectDir + "GrowUpFX.prefab";

    private const string widgeteDir = battleDir + "Widget/";

    public const string pickItemFxPath = battleEffectDir + "PickItemFX";
    public const string pickMoneyFxPath = battleEffectDir + "PickMoneyFX";
    public const string hitFxPath = battleEffectDir + "HitFX.prefab";

    public const string putupFxPath = battleEffectDir + "PutupFX";

    public const string coinPath = widgeteDir + "GoldCoin";
    public const string winFX = battleEffectDir + "WinFX";
    
    private const string homeDir = "Scene/Home/";
    
    public const string bulletDir = battleDir + "物件/Bullet";

    public static Sprite LoadItemIcon(int itemId)
    {
        return Load<Sprite>(itemIconsDir + itemId);
    }
    public const string roleIconsPath = "Scene/Home/UI/RoleIcons";

    public static Sprite LoadSkinIcon(int skinId)
    {
        string path = System.IO.Path.Combine(roleIconsPath, skinId.ToString());
        return Load<Sprite>(path);
    }

    public const string candidateIconsPath = "Scene/Home/UI/CandidateIcons";
    public const string candidatePhotosPath = "Scene/Home/UI/CandidatePhotos";
    public static Sprite LoadCandidateIcon(long Candidate)
    {
        string path = System.IO.Path.Combine(candidateIconsPath, Candidate.ToString());
        return Load<Sprite>(path);
    }
    public static Sprite LoadCandidatePhoto(long Candidate)
    {
        string path = System.IO.Path.Combine(candidatePhotosPath, Candidate.ToString());
        return Load<Sprite>(path);
    }
    public static Sprite LoadPlayerIcon()
    {
        return Load<Sprite>(System.IO.Path.Combine(candidateIconsPath,"0"));
    }
}
